package org.itboys.store.search;


public class ProductSearchDoc {

    /**
     * see solr/product schema.xml
     */
    public static final String FIELD_PRODUCT_NAME = "product_name";

    public static final String FIELD_PRODUCT_ID = "id";

    public static final String FIELD_CATEGORY_FULL_ID = "category_full_id";

    public static final String FIELD_SHOP_ID = "shopId";

    public static final String FIELD_BRAND_ID = "brandId";

    public static final String FIELD_PRICE = "price";

    public static final String FIELD_SOLD_COUNT = "soldCount";

    public static final String FIELD_READ_COUNT = "readCount";

    public static final String FIELD_READ_TYPE = "type";

    /**
     *  商品名称索引 将商品名称 标签 品牌名称 分类名称 合成一个字符串
     */
    private String productName;

    /**
     * 店铺ID
     */
    private long shopId;

    /**
     * 分类全路径
     */
    private String categoryFullIdPath;

    /**
     * 商品ID
     */
    private long productId;

    /**
     * 品牌ID
     */
    private long brandId;

    /**
     * 商品售价
     */
    private double price;

    private int soldCount = 0;//总销量

    private long readCount = 0;//人气/点击量

    private int type;


    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public long getShopId() {
        return shopId;
    }

    public void setShopId(long shopId) {
        this.shopId = shopId;
    }

    public String getCategoryFullIdPath() {
        return categoryFullIdPath;
    }

    public void setCategoryFullIdPath(String categoryFullIdPath) {
        this.categoryFullIdPath = categoryFullIdPath;
    }

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public long getBrandId() {
        return brandId;
    }

    public void setBrandId(long brandId) {
        this.brandId = brandId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSoldCount() {
        return soldCount;
    }

    public void setSoldCount(int soldCount) {
        this.soldCount = soldCount;
    }

    public long getReadCount() {
        return readCount;
    }

    public void setReadCount(long readCount) {
        this.readCount = readCount;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
